package net;

import java.io.FileWriter;

import au.com.bytecode.opencsv.CSVWriter;

/**
 * 
 */

/**
 * @author linzq
 * 
 */
public class CSVWriterTest {

  /**
   * @param args
   * @throws Exception
   */
  public static void main(String[] args) throws Exception {
    CSVWriter writer = new CSVWriter(new FileWriter("yourfile.csv"), ',');
    // feed in your array (or convert your data to an array)
    String[] entries = "first#second#third".split("#");
    writer.writeNext(entries);
    writer.close();
  }

}
